home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Drawing / SourceMode.h < prev    next >
Text File  |  1997-06-28  |  1KB  |  56 lines

  1. // SourceMode.h
  2.  
  3. #ifndef SourceMode_h
  4. #define SourceMode_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class SourceMode
  11.   {
  12.     public:
  13.         enum Mode
  14.           {
  15.             srcCopy        = ::srcCopy,
  16.             srcOr            = ::srcOr,
  17.             srcXor        = ::srcXor,
  18.             srcBic        = ::srcBic,
  19.             notSrcCopy    = ::notSrcCopy,
  20.             notSrcOr        = ::notSrcOr,
  21.             notSrcXor    = ::notSrcXor,
  22.             notSrcBic    = ::notSrcBic,
  23.             
  24.             ditherCopy        = ::ditherCopy | ::srcCopy,
  25.             ditherOr            = ::ditherCopy | ::srcOr,
  26.             ditherXor        = ::ditherCopy | ::srcXor,
  27.             ditherBic        = ::ditherCopy | ::srcBic,
  28.             notDitherCopy    = ::ditherCopy | ::notSrcCopy,
  29.             notDitherOr        = ::ditherCopy | ::notSrcOr,
  30.             notDitherXor    = ::ditherCopy | ::notSrcXor,
  31.             notDitherBic    = ::ditherCopy | ::notSrcBic,
  32.             
  33.             blend                = ::blend,
  34.             addPin            = ::addPin,
  35.             addOver            = ::addOver,
  36.             subPin            = ::subPin,
  37.             transparent        = ::transparent,
  38.             addMax            = ::addMax,
  39.             subOver            = ::subOver,
  40.             addMin            = ::adMin    /* sic */
  41.           };
  42.     
  43.     private:
  44.         Mode mode;
  45.     
  46.     public:
  47.         SourceMode( Mode m )        : mode( m )        {}
  48.         
  49.         static SourceMode Make( int16 value )
  50.             { return static_cast<Mode>( value ); }
  51.     
  52.         int16 Value() const            { return mode; }
  53.   };
  54.  
  55. #endif
  56.